﻿using System;
using UniMana.Utils.Helper;
using DevExpress.XtraEditors;

namespace UniMana.Win.Training
{
    public partial class FrmViewSchedule : DevExpress.XtraEditors.XtraForm
    {
        //private DataTable m_tblTable;
        //private DBMain m_data = new DBMain();

        public FrmViewSchedule()
        {
            InitializeComponent();
        }

        private void FrmSchedule_Load(object sender, EventArgs e)
        {

        }

        private void nbiPerson_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(new FrmViewSchedule_Lecturer(), xtbSchedule);
        }

        private void nbiStudent_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(new FrmViewSchedule_Student(), xtbSchedule);
        }

        private void nbiRoom_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(new FrmViewSchedule_Room(), xtbSchedule);
        }

        private void xtbSchedule_CloseButtonClick(object sender, EventArgs e)
        {
            //xtbSchedule.SelectedTabPage
            xtbSchedule.TabPages.Remove(xtbSchedule.SelectedTabPage);
        }

        private void nbiDepartment_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            TabShowFrm.ShowTabbedMdi(new FrmViewSchedule_Department(), xtbSchedule);
        }
    }
}